package com.wei.spring.web.user.model.vo;

import com.alibaba.fastjson.JSON;

/**
 * http接口返回值
 *
 * @param <T> 如果用到泛型，可以这样注释
 * @author buhuan.wang
 * @since 2020/12/20
 */
public class ResultData {
    private Boolean success;
    private String errorCode;
    private String errorMsg;
    private Object result;

    public Boolean getSuccess() {
        return success;
    }

    public void setSuccess(Boolean success) {
        this.success = success;
    }

    public String getErrorCode() {
        return errorCode;
    }

    public void setErrorCode(String errorCode) {
        this.errorCode = errorCode;
    }

    public String getErrorMsg() {
        return errorMsg;
    }

    public void setErrorMsg(String errorMsg) {
        this.errorMsg = errorMsg;
    }

    public Object getResult() {
        return result;
    }

    public void setResult(Object result) {
        this.result = result;
    }

    @Override
    public String toString() {
        return JSON.toJSONString(this);
    }
}
